package com.user.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/login")
    public String login(){

        System.out.println("######处理登录请求######");
        //http:127.0.0.1:8891/order/create


        //登录成功生成token
        String token = UUID.randomUUID().toString().replace("-","");

        //写到redis

        //返回token给前端

        return token;
    }
}
